﻿local addon, ns = ...
local profile = {}
local differences
local default = {}
default.prof = {}
local function SplitTableString(var, name, ...)
	if ... then
		if not var[name] or type(var[name]) ~= "table" then
			var[name] = {}
		end
		var = var[name]	
		return SplitTableString(var, ...)
	else
		return var, name	
	end
end
local AddProfile = function(parentname, diff)
	local func = function()
		local cfgtable
		if default.prof[parentname] then
			cfgtable = default.prof[parentname]
		else
			cfgtable = profile[parentname]()
		end
		if diff then
			for diffname,diffvar in pairs(diff) do
				if strfind(diffname, "|") then
					local var, name = SplitTableString(cfgtable, strsplit("|", diffname))
					var[name] = diffvar	
				else
					cfgtable[diffname] = diffvar
				end
			end
		end
		return cfgtable
	end
	return func
end
default.AddProfile = AddProfile


default.prof["Default1"] = {
  font = "Interface\\AddOns\\LabelUI\\media\\Aquarion.otf", 
  bars = {
    bar1 = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      uselayout2x6    = false,
      uselayout3x4    = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOMLEFT", a2 = "BOTTOMLEFT", af = "UIParent", x = 3, y = 3 }, 
      testmode        = false,
    },
    bar2 = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      uselayout2x6    = false,
      uselayout3x4    = false,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "LEFT", a2 = "RIGHT", af = "rABS_MainMenuBar", x = 5, y = 0 }, 
      testmode        = false,
    },
    bar3 = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      uselayout2x6    = false,
      uselayout3x4    = false,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "LEFT", a2 = "RIGHT", af = "rABS_MultiBarBottomLeft", x = 5, y = 0 }, 
      testmode        = false,
    },
    bar4 = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "RIGHT", a2 = "RIGHT", af = "UIParent", x = -3, y = -120 }, 
      testmode        = false,
    },
    bar5 = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "RIGHT", a2 = "LEFT", af = "rABS_MultiBarRight", x = -5, y = 0 }, 
      testmode        = false,
    },
    extrabar = {
      buttonsize      = 50,
      buttonspacing   = 5,
      barscale        = 0.82,
      userplaced      = true,
      locked          = true,
      pos             = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = -300 },
      testmode        = false,
      disable         = false,
    },
    stancebar = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOMLEFT", a2 = "TOPLEFT", af = "rABS_MainMenuBar", x = 0, y = 5 }, 
      testmode        = false,
      disable         = false,
    },
    petbar = {
      buttonsize      = 22,
      buttonspacing   = 5,
      barscale        = 0.82,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOM", a2 = "BOTTOM", af = "UIParent", x = 0, y = 60 }, 
      testmode        = false,
      disable         = false,
    },
    bags = {
      barscale        = 1.18,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOMLEFT", a2 = "BOTTOMRIGHT", af = "rABS_MultiBarBottomRight", x = -8, y = 0 }, 
      testmode        = false,
      disable         = false,
    },
    totembar = {
      barscale        = 0.82,
      userplaced      = true, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOM", a2 = "BOTTOM", af = "UIParent", x = -1, y = 140 }, 
      testmode        = false,
      disable         = false,
    },
    vehicleexit = {
      buttonsize      = 36,
      barscale        = 0.82,
      userplaced      = true, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOM", a2 = "BOTTOM", af = "UIParent", x = 210, y = 135 }, 
      testmode        = false,
    },
	flyout = {
      barscale        = 1,
    },
    cdbar = {
      buttonsize      = 50,
      statusbarsize   = 140,
      buttonspacing   = 5,
      barscale        = 0.82,
      bartype 	      = "ICONS",
      textsize	      = 22,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "TOPLEFT", a2 = "TOPLEFT", af = "UIParent", x = 3, y = -160 }, 
      testmode        = false,
      spells = {
	{
      	   name = "Круг исцеления",
	   addithions = false
	},
	{
      	   name = "Исповедь",
	   addithions = false
	},
	{
      	   name = "Молитва восстановления",
	   addithions = false
	},
	{
      	   name = "Слово Света: Воздаяние",
	   addithions = {
		[88685] = "Чакра: святилище", 
		[88684] = "Чакра: безмятежность"
		},
	},
	{
      	   name = "Оберегающий дух",
	   addithions = false
	},
	{
      	   name = "Придание сил",
	   addithions = false
	},
	{
      	   name = "Подавление боли",
	   addithions = false
	},
	{
      	   name = "Слово cилы: Барьер",
	   addithions = false
	},
	{
      	   name = "Божественный гимн",
	   addithions = false
	},
	{
      	   name = "Исчадие Тьмы",
	   addithions = false
	},
	{
      	   name = "Гимн надежды",
	   addithions = false
	},
      },
    },
  },
  frames = {
    player = {
      pos               = { a1 = "TOPLEFT", a2 = "TOPLEFT", af = "UIParent", x = 4.5, y = -4.5 }, 
      height            = 60,
      width		= 285,
      showportrait	= true,
      fontsize		= 18,
      heathbarheight		= 36,
	  barspace		= 2,
      bufs = {
	pos               = { a1 = "TOPLEFT", a2 = "BOTTOMLEFT", af = "self", x = -1.5, y = -1.5 },
	size		  = 288.5/13,
	space		  = 0,
	border		  = 2,
	width		  = 288.5,
	height		  = 288.5/13*(floor((32-1)/13) + 1),
	anchor		  = 'TOPLEFT',
	statusbar	  = 0,
	rewerscd	  = false,
	fontsize	  = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'DOWN',
	},
      },
      debufs = {
	pos               = { a1 = "TOPLEFT", a2 = "TOPRIGHT", af = "VUHDO_getActionPanel(2)", afa = 2, x = 0, y = 0 },
	size		  = 22,
	space		  = 0,
	border		  = 2,
	width		  = 22,
	height		  = 5,
	anchor		  = 'TOPLEFT',
	statusbar	  = 80,
	showtypes	  = false,
	num		  = 39,
	fontsize	  = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'DOWN',
	},
      },
	  classicons = {
	pos               = { a1 = "TOPLEFT", a2 = 'BOTTOMLEFT', af = "self", x = 5, y = -5 },
	size		  = 30,
	width		  = 30,
	height		  = 30,
	anchor		  = 'TOPLEFT',
	fontsize	  = 13,
	grow 		  = 'UP',
      },
	  totems = {
	pos               = { a1 = "TOPLEFT", a2 = 'BOTTOMLEFT', af = "self", x = 5, y = -5 },
	size		  = {30, 120},
	width		  = 30,
	height		  = 30,
	anchor		  = 'TOPLEFT',
	fontsize	  = 13,
	grow 		  = 'DOWN',
      },
	  castbar = {
	pos               = { a1 = "BOTTOM", a2 = "BOTTOM", af = "UIParent", x = 0, y = 100 },
	width		  = 250,
	height		  = 22,
	fontsize	  = 13,
	border		  = 2,
	icon		  = true,
      },
	  vengeance = {
	pos               = { a1 = "TOP", a2 = "BOTTOM", af = "self", x = 0, y = -4.5 },
	width		  = 150,
	height		  = 22,
	fontsize	  = 13,
	border		  = 2,
      },
    },
    target = {
      pos               = { a1 = "TOPLEFT", a2 = "TOPRIGHT", af = "oUF_Player", x = 3, y = 0 }, 
      height            = 60,
      width		= 285,
      showportrait	= true,
      fontsize		= 18,
      heathbarheight		= 36,
	  barspace		= 2,
      aura = {
	pos               = { a1 = "TOPLEFT", a2 = "BOTTOMLEFT", af = "self", x = -1.5, y = -1.5 },
	size		  = 288.5/13,
	space		  = 0,
	border		  = 2,
	width		  = 288.5,
	height		  = 5,
	anchor		  = 'TOPLEFT',
	statusbar	  = 0,
	num = {
	  b		   = 32,
	  d		   = 37,
	},
	showtypes	  = false,
	fontsize	  = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'DOWN',
	},
      },
    },
    targettarget = {
      pos               = { a1 = "TOPLEFT", a2 = "TOPRIGHT", af = "oUF_Target", x = 3, y = 0 }, 
      height            = 38,
      width		= 120,
      showportrait	= true,
      fontsize		= 14,
      aura = {
	enable		  = true,
	pos               = { a1 = "TOPLEFT", a2 = "BOTTOMLEFT", af = "self", x = -1.5, y = - 1.5 },
	size		  = 22,
	space		  = 0,
	border		  = 2,
	width		  = 120,
	height		  = 5,
	anchor		  = 'TOPLEFT',
	statusbar	  = 0,
	num = {
	  b		   = 0,
	  d		   = 8,
	},
	showtypes	  = false,
	fontsize	  = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'DOWN',
	},
      },
    },
    pet = {
      pos               = { a1 = "BOTTOMRIGHT", a2 = "TOPLEFT", af = "oUF_Player", x = 10, y = 20 }, 
      height            = 30,
      width		= 120,
      showportrait	= true,
      fontsize		= 14,
      aura = {
	enable		  = false,
	pos               = { a1 = "TOPLEFT", a2 = "TOPLEFT", af = "self", x = 4.5, y = -4.5 },
	size		  = 22,
	space		  = 0,
	border		  = 2,
	width		  = 120,
	height		  = 5,
	anchor		  = 'TOPLEFT',
	statusbar	  = 0,
	num = {
	  b		   = 5,
	  d		   = 5,
	},
	showtypes	  = false,
	fontsize	  = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'DOWN',
	},
      },
    },
    bossbars = {
      pos               = { a1 = "TOPRIGHT", a2 = "TOP", af = "UIParent", x = 728.1, y = -016.5 },
      grow = 'DOWN',
      fontsize		= 14,
	  debufs = {
	enable		 = true,
	pos              = { a1 = "TOPRIGHT", a2 = "TOPLEFT", af = "self", x = 0, y = 0 },
	size		 = 22,
	space		 = 0,
	border		 = 2,
	width		 = 22*5,
	statusbar 	 = 0,
	tracking	 = true,
	height		 = 5,
	anchor		 = 'TOPRIGHT',
	showtypes	 = false,
	fontsize	 = 13,
	grow = {
	  x		  = 'LEFT',
	  y 		  = 'UP',
	},
      },
    },
    tracking = {
      debufs = {
	enable		 = true,
	pos              = { a1 = "TOPLEFT", a2 = "BOTTOMLEFT", af = "VUHDO_getActionPanel(2)", x = 0, y = 0 },
	size		 = 22,
	space		 = 0,
	border		 = 2,
	width		 = 22,
	height		 = 5,
	anchor		 = 'TOPLEFT',
	statusbar	 = 200,
	showtypes	 = false,
	fontsize	 = 13,
	grow = {
	  x		  = 'RIGHT',
	  y 		  = 'DOWN',
	},
	spells = {
	  [1]		  = "Всепожирающая чума",
	  [2]		  = "Слово Тьмы: Боль",
	},
      },
      bufs = {
	enable		 = false,
      },
    },
    minimap = {
      Scale             = 1.18,
      BGThickness       = 3,
      pos               = { a1 = "TOPRIGHT", a2 = "TOPRIGHT", af = "UIParent", x = -8, y = -28 }, 
      color             = { r = 0, g = 0, b = 0, a = 0.5},
      trackingsize      = 14,
      trackingfontflag  = "THINOUTLINE",
      trackingowncolor  = {0.41, 0.8, 0.94},
    },
	panel = {
      pos               = { a1 = "BOTTOMRIGHT", a2 = "BOTTOMRIGHT", af = "UIParent", x = -3, y = 3 }, 
      height    		= 22,
      width		    	= 359,
    },
  },
  textures = {
	defaultbg		  = "Interface\\Tooltips\\UI-Tooltip-Background",
	statusbar		  = "Interface\\AddOns\\LabelUI\\media\\statusbar",
    normal            = "Interface\\AddOns\\LabelUI\\media\\gloss2",
    flash             = "Interface\\AddOns\\LabelUI\\media\\flash",
    hover             = "Interface\\AddOns\\LabelUI\\media\\hover",
    pushed            = "Interface\\AddOns\\LabelUI\\media\\pushed",
    checked           = "Interface\\AddOns\\LabelUI\\media\\checked",
    equipped          = "Interface\\AddOns\\LabelUI\\media\\gloss_grey",
    buttonback        = "Interface\\Tooltips\\UI-Tooltip-Background",
    buttonbackflat    = "Interface\\Tooltips\\UI-Tooltip-Background",
    outer_shadow      = "Interface\\AddOns\\LabelUI\\media\\gloss2",
  }, 
  background = {
    showbg            = false,  --show an background image?
    showshadow        = false,   --show an outer shadow?
    useflatbackground = true,  --true uses plain flat color instead
    backgroundcolor   = { r = 0, g = 0, b = 0, a = 0.5},
    shadowcolor       = { r = 0, g = 0, b = 0, a = 0.5},
    classcolored      = false,
    inset             = 5, 
	inset2             = 10, }, 
  color = {
    normal            = { r = 0, g = 0, b = 0, a = 0 },
    equipped          = { r = 0, g = 135/255, b = 71/255, a = 0 },
    classcolored      = false,
  }, 
  hotkeys = {
    show            = false,
    fontsize        = 12,
    pos1             = { a1 = "TOPRIGHT", x = 0, y = 0 }, 
    pos2             = { a1 = "TOPLEFT", x = 0, y = 0 }, --important! two points are needed to make the hotkeyname be inside of the button
  }, 
  macroname = {
    show            = false,
    fontsize        = 12,
    pos1             = { a1 = "BOTTOMLEFT", x = 0, y = 0 }, 
    pos2             = { a1 = "BOTTOMRIGHT", x = 0, y = 0 }, --important! two points are needed to make the macroname be inside of the button
  }, 
  itemcount = {
    show            = true,
    fontsize        = 12,
    pos1             = { a1 = "BOTTOMRIGHT", x = 0, y = 0 }, 
  }, 
  cooldown = {
    spacing         = 0,
  },
  }
default.prof["Default2"] = {
  font = "Interface\\AddOns\\LabelUI\\media\\Aquarion.otf",
  bars = {
    bar1 = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      uselayout2x6    = false,
      uselayout3x4    = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOMLEFT", a2 = "BOTTOMLEFT", af = "UIParent", x = 3, y = 3 }, 
      testmode        = false,
    },
    bar2 = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      uselayout2x6    = false,
      uselayout3x4    = false,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOMLEFT", a2 = "TOPLEFT", af = "rABS_MainMenuBar", x = 0, y = 5 },
      testmode        = false,
    },
    bar3 = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      uselayout2x6    = false,
      uselayout3x4    = true,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOMRIGHT", a2 = "BOTTOMRIGHT", af = "UIParent", x = -445, y = 3 }, 
      testmode        = false,
    },
    bar4 = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "RIGHT", a2 = "RIGHT", af = "UIParent", x = -3, y = -120 }, 
      testmode        = false,
    },
    bar5 = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "RIGHT", a2 = "LEFT", af = "rABS_MultiBarRight", x = -5, y = 0 }, 
      testmode        = false,
    },
    extrabar = {
      buttonsize      = 50,
      buttonspacing   = 5,
      barscale        = 0.82,
      userplaced      = true,
      locked          = true,
      pos             = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = -150 },
      testmode        = false,
      disable         = false,
    },
    stancebar = {
      buttonsize      = 43,
      buttonspacing   = 5,
      barscale        = 0.82,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "LEFT", a2 = "RIGHT", af = "rABS_MainMenuBar", x = 5, y = 0 },  
      testmode        = false,
      disable         = false,
    },
    petbar = {
      buttonsize      = 22,
      buttonspacing   = 5,
      barscale        = 0.82,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOMLEFT", a2 = "TOPLEFT", af = "rABS_MultiBarBottomLeft", x = 0, y = 3 }, 
      testmode        = false,
      disable         = false,
    },
    bags = {
      barscale        = 1.14,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOMLEFT", a2 = "BOTTOMRIGHT", af = "rABS_MultiBarBottomRight", x = -42, y = 0.7 }, 
      testmode        = false,
      disable         = false,
    },
    totembar = {
      barscale        = 0.82,
      userplaced      = true, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOM", a2 = "BOTTOM", af = "UIParent", x = -1, y = 140 }, 
      testmode        = false,
      disable         = false,
    },
    vehicleexit = {
      buttonsize      = 36,
      barscale        = 0.82,
      userplaced      = true, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "BOTTOM", a2 = "BOTTOM", af = "UIParent", x = 210, y = 135 }, 
      testmode        = false,
    },
	flyout = {
      barscale        = 1,
    },
    cdbar = {
      buttonsize      = 22,
      statusbarsize   = 266,
      buttonspacing   = 0,
      barscale        = 1,
      bartype 	      = "STATUSBAR",
      textsize	      = 13,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "TOPLEFT", a2 = "BOTTOM", af = "UIParent", x = 104, y = 173 }, 
      testmode        = false,
      spells = {	
	--  	{
   --   	 	name = GetSpellInfo(87151),
	--   	   	addithions = false
	--	},
	  	{
      	 	name = GetSpellInfo(34433),
	   	   	addithions = false
		},
	  	{
      	 	name = GetSpellInfo(60447),
	   	   	addithions = false
		},
      },
    },
  },
  frames = {
    player = {
      pos               = { a1 = "BOTTOM", a2 = "BOTTOM", af = "UIParent", x = -240, y = 174.5 }, 
      height            = 60,
      width		= 285,
      showportrait	= true,
      fontsize		= 18,
      heathbarheight		= 36,
	  barspace		= 2,
      bufs = {
	pos               = { a1 = "TOPLEFT", a2 = "TOPLEFT", af = "UIParent", x = 3, y = -3 },
	size		  = 30,
	space		  = 3,
	border		  = 3,
	width		  = 30*16,
	height		  = 5,
	anchor		  = 'TOPLEFT',
	statusbar	  = 0,
	rewerscd	  = true,
	fontsize	  = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'DOWN',
	},
      },
      debufs = {
	pos               = { a1 = "BOTTOMLEFT", a2 = "TOPLEFT", af = "self", x = 0, y = 40 },
	size		  = 22,
	space		  = 0,
	border		  = 2,
	width		  = 22,
	height		  = 5,
	anchor		  = 'BOTTOMLEFT',
	statusbar	  = 160,
	showtypes	  = false,
	num		  = 39,
	fontsize	  = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'UP',
	},
      },
	  classicons = {
	pos               = { a1 = "BOTTOM", a2 = "TOP", af = "self", x = 0, y = 5 },
	size		  = 30,
	width		  = 30,
	height		  = 30,
	anchor		  = 'TOPLEFT',
	fontsize	  = 13,
	grow 		  = 'RIGHT',
      },
      totems = {
	pos               = { a1 = "BOTTOM", a2 = 'TOP', af = "self", x = 0, y = 5 },
	size		  = {120, 30},
	width		  = 30,
	height		  = 30,
	anchor		  = 'TOPLEFT',
	fontsize	  = 13,
	grow 		  = 'RIGHT',
      },
      runes = {
	pos               = { a1 = "BOTTOM", a2 = 'TOP', af = "self", x = 0, y = 5 },
	size		  = {180, 30},
	width		  = 30,
	height		  = 30,
	anchor		  = 'TOPLEFT',
	fontsize	  = 13,
	grow 		  = 'RIGHT',
      },
      enchant = {
	pos               = { a1 = "TOPLEFT", a2 = "BOTTOMLEFT", af = "BuffFrame", x = 0, y = -20 },
	border		  = 3,
	space		  = 3,
	size		  = 30,
	rewerscd	  = true,
	grow 		  = 'RIGHT',
      },
	  castbar = {
	pos               = { a1 = "TOPLEFT", a2 = "BOTTOMRIGHT", af = "self", x = 1.5, y = -4.5 },
	width		  = 200,
	height		  = 22,
	fontsize	  = 13,
	border		  = 2,
	icon		  = true,
      },
	  tank_absorb = {
	pos               = { a1 = "BOTTOMLEFT", a2 = "BOTTOMRIGHT", af = "self", x = 1.5, y = -1.5 },
	width		  = 200,
	height		  = 22,
	fontsize	  = 13,
	border		  = 2,
	icon		  = true,
      },
	  vengeance = {
	pos               = { a1 = "TOP", a2 = "BOTTOM", af = "self", x = 0, y = -4.5 },
	width		  = 150,
	height		  = 22,
	fontsize	  = 13,
	border		  = 2,
      },
    },
    target = {
      pos               = { a1 = "TOPLEFT", a2 = "TOPRIGHT", af = "oUF_Player", x = 203, y = 0 }, 
      height            = 60,
      width		= 285,
      showportrait	= true,
      fontsize		= 18,
      heathbarheight		= 36,
	  barspace		= 2,
      aura = {
	pos               = { a1 = "BOTTOMLEFT", a2 = "TOPLEFT", af = "self", x = -1.5, y = 1.5 },
	size		  = 215.5/10,
	space		  = 0,
	border		  = 2,
	width		  = 215.5,
	height		  = 5,
	anchor		  = 'BOTTOMLEFT',
	statusbar	  = 0,
	num = {
	  b		   = 32,
	  d		   = 37,
	},
	showtypes	  = false,
	fontsize	  = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'UP',
	},
      },
    },
    targettarget = {
      pos               = { a1 = "TOPLEFT", a2 = "TOPRIGHT", af = "oUF_Target", x = 3, y = 0 }, 
      height            = 38,
      width		= 120,
      showportrait	= true,
      fontsize		= 14,
      aura = {
	enable		  = true,
	pos               = { a1 = "TOPLEFT", a2 = "BOTTOMLEFT", af = "self", x = -1.5, y = - 1.5 },
	size		  = 22,
	space		  = 0,
	border		  = 2,
	width		  = 120,
	height		  = 5,
	anchor		  = 'TOPLEFT',
	statusbar	  = 0,
	num = {
	  b		   = 0,
	  d		   = 8,
	},
	showtypes	  = false,
	fontsize	  = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'DOWN',
	},
      },
    },
	focus = {
      pos               = { a1 = "BOTTOMLEFT", a2 = "TOPRIGHT", af = "oUF_Target", x = -60, y = 3 }, 
      height            = 45,
      width		= 183,
      showportrait	= true,
      fontsize		= 14,
	  debufs = {
	enable		 = true,
	pos              = { a1 = "BOTTOMLEFT", a2 = "TOPLEFT", af = "self", x = -1.5, y = 1.5 },
	size		 = 22,
	space		 = 0,
	border		 = 2,
	width		 = 22,
	height		 = 5,
	anchor		 = 'BOTTOMLEFT',
	statusbar	 = 186,
	showtypes	 = false,
	fontsize	 = 13,
	grow = {
	  x		  = 'RIGHT',
	  y 		  = 'UP',
	},
	tracking	 = true,
      },
    },
    pet = {
      pos               = { a1 = "TOPLEFT", a2 = "BOTTOMLEFT", af = "oUF_Player", x = 0, y = -3 }, 
      height            = 30,
      width		= 120,
      showportrait	= true,
      fontsize		= 14,
      aura = {
	enable		  = false,
	pos               = { a1 = "TOPLEFT", a2 = "TOPLEFT", af = "self", x = 4.5, y = -4.5 },
	size		  = 22,
	space		  = 0,
	border		  = 2,
	width		  = 120,
	height		  = 5,
	anchor		  = 'TOPLEFT',
	statusbar	  = 0,
	num = {
	  b		   = 5,
	  d		   = 5,
	},
	showtypes	  = false,
	fontsize	  = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'DOWN',
	},
      },
    },
    bossbars = {
      --pos               = { a1 = "TOPRIGHT", a2 = "TOP", af = "UIParent", x = 728.1, y = -016.5 },
	  pos               = { a1 = "BOTTOMLEFT", a2 = "TOPRIGHT", af = "oUF_TOT", x = 70, y = 9.5 },
	  grow = 'UP',
      fontsize		= 14,
	  debufs = {
	enable		 = true,
	pos              = { a1 = "TOPRIGHT", a2 = "TOPLEFT", af = "self", x = 0, y = 0 },
	size		 = 22,
	space		 = 0,
	border		 = 2,
	width		 = 22*5,
	statusbar 	 = 0,
	height		 = 5,
	anchor		 = 'TOPRIGHT',
	showtypes	 = false,
	fontsize	 = 13,
	grow = {
	  x		  = 'LEFT',
	  y 		  = 'UP',
	},
	spells = {
	  [4]		  = GetSpellInfo(123059),
	},
	tracking	 = true,
      },
    },
    tracking = {
      debufs = {
	enable		 = true,
	pos              = { a1 = "TOPLEFT", a2 = "TOPLEFT", af = "self", x = -201.5, y = 1.5 },
	size		 = 22,
	space		 = 0,
	border		 = 2,
	width		 = 22,
	height		 = 5,
	anchor		 = 'TOPLEFT',
	statusbar	 = 200,
	showtypes	 = false,
	fontsize	 = 13,
	grow = {
	  x		  = 'RIGHT',
	  y 		  = 'DOWN',
	},
	spells = {
	  [1]		  = GetSpellInfo(34914),
	  [2]		  = GetSpellInfo(589),
	  [3]		  = GetSpellInfo(2944),
	},
      },
      bufs = {
	enable		 = true,
	pos              = { a1 = "BOTTOMLEFT", a2 = "TOPRIGHT", af = "self", x = 1.5, y = 40 },
	size		 = 22,
	space		 = 0,
	border		 = 2,
	width		 = 22,
	height		 = 5,
	anchor		 = 'BOTTOMLEFT',
	statusbar	 = 200,
	showtypes	 = false,
	fontsize	 = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'UP',
	},
	spells = {
	  [1] 		   = GetSpellInfo(77487),
	  [2] 		   = GetSpellInfo(95799),
	},
      },
    },
    minimap = {
      Scale             = 1.18,
      BGThickness       = 3,
      pos               = { a1 = "TOPRIGHT", a2 = "TOPRIGHT", af = "UIParent", x = -8, y = -28 }, 
      color             = { r = 0, g = 0, b = 0, a = 0.5},
      trackingsize      = 14,
      trackingfontflag  = "THINOUTLINE",
      trackingowncolor  = {0.41, 0.8, 0.94},
	},
	slidebar= {
      pos               = { a1 = "CENTER", a2 = "BOTTOM", af = "UIParent", x = 0, y = 286 }, 
      iconsize    		= 30,
      barsize		    = 320,
      spells = {
		--[17]			 = 300,
		[8092] 			 = 15,
		[34433]			 = 20,
		[120517]		 = 20,
		[26297]		 	 = 20,
		[32375]			 = 20,
		[32379]			 = 15,
		[121135]		 = 20,
		[10060]			 = 20,
	  },
	},
	panel = {
      pos               = { a1 = "BOTTOMRIGHT", a2 = "BOTTOMRIGHT", af = "UIParent", x = -3, y = 3 }, 
      height    		= 22,
      width		    	= 359,
    },
	procs = {
      pos               = { a1 = "CENTER", a2 = "TOPRIGHT", af = "oUF_Player", x = 101.5, y = 8 }, 
      iconsize    		= 30,
    },
  },
  textures = {
	defaultbg		  = "Interface\\Tooltips\\UI-Tooltip-Background",
	statusbar		  = "Interface\\AddOns\\LabelUI\\media\\statusbar",
    normal 			  = "Interface\\AddOns\\LabelUI\\media\\gloss2",
    flash             = "Interface\\AddOns\\LabelUI\\media\\flash",
    hover             = "Interface\\AddOns\\LabelUI\\media\\hover",
    pushed            = "Interface\\AddOns\\LabelUI\\media\\pushed",
    checked           = "Interface\\AddOns\\LabelUI\\media\\checked",
    equipped          = "Interface\\AddOns\\LabelUI\\media\\gloss_grey",
    buttonback        = "Interface\\Tooltips\\UI-Tooltip-Background",
    buttonbackflat    = "Interface\\Tooltips\\UI-Tooltip-Background",
    outer_shadow      = "Interface\\AddOns\\LabelUI\\media\\gloss2",
  }, 
  background = {
    showbg            = false,  --show an background image?
    showshadow        = false,   --show an outer shadow?
    useflatbackground = true,  --true uses plain flat color instead
    backgroundcolor   = { r = 0, g = 0, b = 0, a = 0.5},
    shadowcolor       = { r = 0, g = 0, b = 0, a = 0.5},
    classcolored      = false,
    inset             = 5, 
	inset2             = 10, }, 
  color = {
    normal            = { r = 0, g = 0, b = 0, a = 0 },
    equipped          = { r = 0, g = 135/255, b = 71/255, a = 0 },
    classcolored      = false,
  }, 
  hotkeys = {
    show            = false,
    fontsize        = 12,
    pos1             = { a1 = "TOPRIGHT", x = 0, y = 0 }, 
    pos2             = { a1 = "TOPLEFT", x = 0, y = 0 }, --important! two points are needed to make the hotkeyname be inside of the button
  }, 
  macroname = {
    show            = false,
    fontsize        = 12,
    pos1             = { a1 = "BOTTOMLEFT", x = 0, y = 0 }, 
    pos2             = { a1 = "BOTTOMRIGHT", x = 0, y = 0 }, --important! two points are needed to make the macroname be inside of the button
  }, 
  itemcount = {
    show            = true,
    fontsize        = 12,
    pos1             = { a1 = "BOTTOMRIGHT", x = 0, y = 0 }, 
  }, 
  cooldown = {
    spacing         = 0,
  },
  }

ns.default = default
ns.profile = profile